package com.gilight.base.mapper;

import com.gilight.base.dto.CouponUserDTO;
import com.gilight.base.model.CouponUserDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by rize on 2019/7/4.
 */
@Repository
public interface CouponUserMapper extends IMapper<CouponUserDO> {

    public List<CouponUserDTO> getUserCoupons(@Param("userId") Long userId, @Param("status") Integer status, @Param("zzjgId") Long zzjgId);

    public List<CouponUserDTO> getAllUserCoupons(@Param("userId") Long userId, @Param("status") Integer status);

    public CouponUserDTO getCouponUserById(@Param("userCouponId") Long userCouponId, @Param("userId") Long userId);

}
